package com.ruoyi.web.controller.demo.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import static com.ruoyi.web.controller.tool.SHA256Utils.*;


@Controller
@RequestMapping(value = "/es")
public class EsHrController {

    @ResponseBody
    @RequestMapping(value = "/list",produces = "application/json;charset=utf-8")
    public String alertQueryList(){
        return getAlertQueryResult();
    }

    @ResponseBody
    @RequestMapping(value = "/Alert/upload",produces = "application/json;charset=utf-8")
    public String alertUpload(){
        return getAlertUploadResult();
    }


    @ResponseBody
    @RequestMapping(value = "/inspection/list",produces = "application/json;charset=utf-8")
    public String inspectionQueryList(){
        return inspectionQueryResult();
    }


    @ResponseBody
    @RequestMapping(value = "/Inspection/upload",produces = "application/json;charset=utf-8")
    public String InspectionUpload(){
        return InspectionUploadResult();
    }




}
